package com.carey.yygh.order.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.carey.yygh.model.order.OrderInfo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.carey.yygh.vo.order.OrderCountQueryVo;
import com.carey.yygh.vo.order.OrderQueryVo;

import java.util.Map;

/**
* @author carey-
* @description 针对表【order_info(订单表)】的数据库操作Service
* @createDate 2022-05-19 00:49:37
*/
public interface OrderInfoService extends IService<OrderInfo> {

    Long saveOrder(String scheduleId, Long patientId);

    OrderInfo getOrders(String orderId);

    IPage<OrderInfo> selectPage(Page<OrderInfo> pageParam, OrderQueryVo orderQueryVo);

    IPage<OrderInfo> selectAllPage(Page<OrderInfo> pageParam, OrderQueryVo orderQueryVo);

    Boolean cancelOrder(Long orderId);

    /**
     * 就诊提醒
     */
    void patientTips();

    //预约统计
    Map<String,Object> getCountMap(OrderCountQueryVo orderCountQueryVo );


}
